package com.baomidou.mybatisplus.extension.plugins.inner;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.IDialect;

public class GBase8sPaginationInnerInterceptor2 extends PaginationInnerInterceptor{
    public GBase8sPaginationInnerInterceptor2(DbType dbType) {
        super(dbType);
    }

    public GBase8sPaginationInnerInterceptor2(IDialect dialect) {
        super(dialect);
    }

    protected String lowLevelCountSql(String originalSql) {
        return  String.format("SELECT COUNT(*) TOTAL  FROM (%s) tmp", originalSql);
    }
}
